-- GENERATED SPELL FOR [Crusher Tentacle] --


function spell0_33966(pUnit, Event) --@Diminish Power,n/a--
pUnit:FullCastSpellOnTarget(64145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33966', 1500, 1)
end

function spell1_33966(pUnit, Event) --@Erupt,Self--
pUnit:FullCastSpellOnTarget(64144,pUnit)
pUnit:RegisterEvent('Sorts_33966', 594, 1)
end

function spell2_33966(pUnit, Event) --@Focused Anger,Self--
pUnit:FullCastSpellOnTarget(57688,pUnit)
pUnit:RegisterEvent('Sorts_33966', 625, 1)
end

function Sorts_33966(pUnit, Event)
local choix_sorts_33966 = math.random(0, 2)
if choix_sorts_33966 == 0 then
pUnit:RegisterEvent('spell0_33966', 1, 1)
end
if choix_sorts_33966 == 1 then
pUnit:RegisterEvent('spell1_33966', 1, 1)
end
if choix_sorts_33966 == 2 then
pUnit:RegisterEvent('spell2_33966', 1, 1)
end
end

function mob33966_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33966', math.random(1500, 3000), 1)
end

function mob33966_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33966_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33966_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33966, 1, 'mob33966_Action')
RegisterUnitEvent(33966, 2, 'mob33966_Leave')
RegisterUnitEvent(33966, 3, 'mob33966_Kill')
RegisterUnitEvent(33966, 4, 'mob33966_Die')
